Skip to content

fix(runtime)!: the confirmation an action declares travels with the flow it starts - #33721

Merged
os-zhuang merged 11 commits into
mainfrom
claude/flow-start-carries-action-confirmation
Nov 15, 2026
Merged

os-zhuang merged 11 commits into
mainfrom
claude/flow-start-carries-action-confirmation

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Clause-②: no (narrowing)
Metadata-protocol: none
Skills-docs: none — no authorable key moves; skills/objectstack-ai/SKILL.md already teaches that an action declaring ai.requiresConfirmation is refused to an AI service account's own key whatever it sends and is a person's to run, and this change holds the flow such an action starts to that same rule.

维护者速读

  • 改了什么:AI 服务账号(自身为主体、无 onBehalfOf 的 agent)经两个 trigger 路由按名启动流程时,若有 type: 'flow' 且 ai.requiresConfirmation: true 的动作指向该流程,统一回动作入口自己的 428 ACTION_CONFIRMATION_REQUIRED,在任何 run 产生之前拒绝,请求带不带 confirm 都一样;读不到动作声明时回 503,不放行。
  • 为什么改:动作声明的确认要求应随它启动的流程一起走;账号不能替自己确认,所以按名启动与经动作启动必须是同一个答案。
  • 风险与回滚:只影响 AI 服务账号经 trigger 路由的启动;人、OAuth 委托 agent、系统主体、没有被门控动作指向的流程、动作入口自身的门都不变。偏安全一侧的三种情况见 changeset(同名流程的任一持有者都算、被关闭的门控动作仍门控、合并清单未提供时账号启动一律 503)。规则 2b 与该请求的 /actions 入口读同一实例;前一步加载失败而后一步命中时按后一步判,这是已声明的限定,统一的逐步报错另行跟进。回滚即 revert 本 PR。
  • 先看:packages/runtime/src/flow-start-admission.ts(flowStartRefusal 中规则 2b 的位置与 DECLARATION_READ_FAILED_REFUSAL)、packages/runtime/src/domains/automation.ts(resolveSlotAsActionsDoorReads 与 servedActionDeclarations 的各个读取来源)、packages/runtime/src/flow-start-confirmation-gated-target.test.ts。
  • 两分钟验证:pnpm --filter @objectstack/runtime exec vitest run --project local src/flow-start-confirmation-gated-target.test.ts,预期 49 passed。
  • 需要你做的:本 PR 是收紧安全行为(一类调用方不能再按名启动某些流程),需维护者本人批准后落地;另请裁定 Metadata-protocol 是否应为 semantic(若是,changeset 升为 minor)。

What changes

The rule: the confirmation an action declares travels with what it starts. An AI service account (principalKind: 'agent', no onBehalfOf) does not confirm an action for itself. When an action of type: 'flow' whose target is a flow declares ai.requiresConfirmation: true, a door that starts that flow by name and states the environment's action declarations refuses the account with the action door's own refusal, 428 ACTION_CONFIRMATION_REQUIRED (its details naming the action, its object and the confirmation member), before any run exists, whatever the request carries. No new error code.

  • packages/runtime/src/flow-start-admission.ts, the one flow start admission predicate flowStartRefusal.
    • Rule 2b sits after the elevated-flow account rule and before the flow's own requiredPermissions. FlowStartDoor gains actionDeclarations, which is read only when the caller is an AI service account.
    • confirmationGatedStarterOf reads the declared flag alone (=== true), over every holder of a declaration. confirmationGatedStartRefusal builds the refusal. Its code and status are typed to the action door's ActionConfirmationRefusal through a type-only import, so the module keeps no value edge into action-execution.ts.
    • Rule 2b reads the flow's name and the declarations only, never the definition. It is asked whether or not the automation service serves getFlow and whether or not the probe returns a definition. Rules 1, 2 and 3 still read the definition and are asked only when it is there, as before.
    • A declaration read that fails is refused by the predicate itself. The refusal is DECLARATION_READ_FAILED_REFUSAL, a flat 503 SERVICE_UNAVAILABLE (a standard-catalog code), whatever the failure declares. It wraps the declaration read alone, so a failure of the predicate's own flow read travels exactly as before, for every caller.
  • packages/runtime/src/domains/automation.ts. Every trigger route answers through one shared mapper: POST /automation/:name/trigger, the legacy POST /automation/trigger/:name, and their addressed forms. That mapper states the declarations through servedActionDeclarations and serves the refusal's details. The sources:
    • where the protocol slot serves the merged listings, its merged object and action listings alone;
    • otherwise, every source the bare /actions door resolves a declaration from on such a host: the ObjectQL registry's objects (with their embedded actions) and standalone action items, and the metadata service's object and standalone action listings.
    • Each of the three slots (protocol, objectql, metadata) goes through resolveSlotAsActionsDoorReads, the smallest composition of the two existing resolvers. First comes resolveService, the order every /actions read uses: the request's own kernel first on a host that routes a request to a kernel of its own, then the host's scoped factory, then its singletons. Its instance is the instance the same request's /actions door reads, in every host shape. Whichever leg answers, its instance is read, as the /actions door would serve it. Only when no leg answers does resolveServiceOrLoud classify the miss. A name nothing registered, or a scoped registration with no instance in this scope, is absent and contributes nothing. Any other rejection is re-raised, so a wired slot that fails to resolve throws. Both steps are scoped by the request's environment, as the door's reads are.
    • Each listing is read where its throw travels. Any read failure that reaches the function as a throw is the predicate's 503. A source that answers a failed read of its own without throwing (the metadata service's plural listing, which reports a failed loader and answers the other loaders' rows) is judged on the rows it answers.
  • The declared type: 'flow' endpoint door is not judged by rule 2b yet. It states no declarations. packages/runtime/src/endpoint-policy.auth-gate.pin.test.ts pins its existing answer on the default authRequired: an API key alone gets 401 UNAUTHENTICATED before its flow runs.
  • The action door states no declarations either. It keeps its own confirmation gate, unchanged.

Unchanged: a person, an OAuth-delegated agent and the system principal, for whom the declarations are not read; an account starting a flow no confirmation-gated action targets; and the action door's own gate (/actions, MCP run_action).

Overlap: open draft #33646 edits packages/runtime/src/domains/automation.ts in other hunks: the address-registry imports and the bare-name admission. No hunk is shared.

Tests

packages/runtime/src/flow-start-confirmation-gated-target.test.ts has 49 cases, named by the rule:

  • Both trigger routes refuse the account 428:
    • without confirm, with confirm: true, and with confirm: true beside params;
    • with the gated action embedded on an object, as a metadata standalone item, in the protocol's merged listing, and in the ObjectQL registry on a host with neither listing;
    • on a service with no getFlow.
  • Both trigger routes refuse the account a flat 503, and nothing runs:
    • when a listing throws, including a throw that declares its own status;
    • when the protocol, objectql or metadata slot is wired and fails to resolve;
    • when the metadata service's standalone action listing throws.
  • CONTROLS:
    • a person starts the flow, and the declarations are not read for one;
    • a person is unchanged on a service with no getFlow and under each failing slot or listing;
    • a delegated agent starts the flow;
    • a flow no gated action targets is started by the account;
    • a gated action that targets another flow gates nothing;
    • the action door still answers its 428 to the account, with and without confirm.
  • flowStartRefusal unit pins:
    • with no getFlow, and with a definition the probe does not return: the account gets 428, while a person and an ungated flow are admitted;
    • a failure of the flow read itself rejects as before and is not answered by the 503.
  • Host shapes, on real kernels: in a kernel-resolver host, a single-environment host and SharedProjectPlugin (a scoped factory), the gated action declared on the instance the request's own /actions door reads refuses the account's start. In the kernel-resolver shape, a pin records today's limitation: where the request's own kernel fails to resolve the slot and the host kernel answers it, the start is judged on the host instance, as the /actions door would serve it. That answer changes when per-leg loud resolution lands. In each shape, a composition that merely lacks every source (in SharedProjectPlugin, a scoped factory with no instance in the scope) gains no 503, and the account starts the flow.
  • confirmationGatedStarterOf: reads the declared flag alone, with each fact changed in turn gating nothing, and picks the same action every time when several qualify.

Ablations are one-shot, run through scripts/ablation-replace.mjs with the fix committed first. Every mutation landed on disk, and every restore was verified: blob equal to HEAD and git diff HEAD empty.

Leg Mutation Red Green
Rule 2b's return replaced 10 rule cases 13 others (at the first head)
metadata slot resolved quietly 2 36
protocol slot resolved quietly 2 36
Registry source disabled 2 —
Rule 2b gated behind the definition again 4 —
objectql slot resolved through the quiet engine probe 2 40
Standalone metadata listing handed back to the reading that answers its throw as empty 2 40
Slot resolution the classifier alone (its host-first order) 1, the kernel-resolver host's gated pin 47
Slot resolution the request-kernel-first probe alone, with no loud classification of a miss 6, a wired slot failing on both routes 42

Two more standalone-listing legs are reported but not used as the measurement. One removed the read entirely, a stronger mutation: 4 red. The other landed on disk without reproducing that reading: 42 green, a spent leg.

Readings
  • At the final head (comments, changeset and pins only since 9714122): src/flow-start-confirmation-gated-target.test.ts, Test Files 1 passed (1), Tests 49 passed (49); pnpm --filter @objectstack/runtime typecheck exit 0; check:nul-bytes, check:doc-authoring and check:issue-citations each exit 0. At f7941c7, the two touched test files gave 69 passed, and check:test-source-alias and check-adr-0087-registration --base origin/main each exited 0. A comment and test change owes no battery, so the full runtime project, the full gate derivation and the dogfood battery stand from 9714122, below.

At 9714122 (origin/main merged in cdb38cd):

  • pnpm --filter @objectstack/runtime exec vitest run --project local --maxWorkers=2: Test Files 604 passed (604), Tests 10919 passed, 19 skipped (lock VERDICT command-exit 0).
  • The two touched test files: Test Files 2 passed (2), Tests 68 passed (68).
  • pnpm --filter @objectstack/runtime typecheck: exit 0 (check:test-typecheck OK, ledger held).

Acceptance notes

  • The declared type: 'flow' endpoint door is not judged by rule 2b yet; its default authRequired refusal of an API key is pinned.
  • The action door states no declarations; its own confirmation gate judges the action it runs, unchanged.
  • The declarations are read from the instance the request's own /actions door reads: a read failure refuses the start when no step of that door's resolution order answers the name, and where a later step answers, the start is judged on that instance, as the door would serve it.
  • Per-leg loud resolution (a wired slot that fails on an earlier step refuses even when a later step answers) is a shared resolver change for every dispatcher door, tracked by the security lane; it is not in this PR.
  • The rule refuses on the safe side in three cases, each one an account start only, as the changeset states:
    • every holder of the flow's name counts;
    • a gated action that is switched off still gates;
    • on a host whose merged metadata listing is not served at all, every account start is refused 503.
  • Rule 2b answers before rule 3, so an account that also lacks the flow's requiredPermissions is answered with the 428.

Verification

Gates
  • node scripts/pm/dispatch-gates.mjs --commands (no paths; derived at 9714122): 71 families. --ran with exit codes recorded: 71 derived, 71 run, 0 NOT MEASURED. pnpm check:dual-build-cjs-loads measured (exit 0) on a re-run after the dogfood closure finished building: 123 require entry points across 72 packages load.
  • node scripts/check-adr-0087-registration.mjs --base origin/main: exit 0. It reads 1 declared-breaking changeset as [BREAKING+bang+clause-②-narrowing] not-required (no-migration-prescription).
  • origin/main merged in this round; the derivation reports no stale tree.
  • Dogfood battery at 9714122, pnpm --filter @objectstack/dogfood test under the lock: VERDICT command-exit 0; Test Files 467 passed, 3 skipped (470); Tests 3958 passed, 42 skipped (4000); no failure.

Generated by Claude Code

…low it starts

An AI service account does not confirm an action for itself. When an action
of type 'flow' whose target is a flow declares ai.requiresConfirmation: true,
the trigger routes (POST /automation/:name/trigger and the legacy
/automation/trigger/:name) refuse the account with the action door's own
428 ACTION_CONFIRMATION_REQUIRED, through the one flow start admission
predicate, before any run exists and whatever the request carries.

A person, an OAuth-delegated agent, a flow no confirmation-gated action
targets, and the action door's own gate are unchanged.

Claude-Session: https://claude.ai/code/session_017xRBcT1w3zpekijraHJE4f
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 15, 2026
@github-actions

github-actions Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 1 package(s): @objectstack/runtime, touching 17 documentable anchor(s).

15 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:

  • content/docs/ai/actions-as-tools.mdx (via ACTION_CONFIRMATION_REQUIRED (literal, a string literal in confirmationGatedStartRefusal))
  • content/docs/ai/connect-mcp.mdx (via ACTION_CONFIRMATION_REQUIRED (literal, a string literal in confirmationGatedStartRefusal), SERVICE_UNAVAILABLE (literal, a string literal in DECLARATION_READ_FAILED_REFUSAL))
  • content/docs/api/client-sdk.mdx (via SERVICE_UNAVAILABLE (literal, a string literal in DECLARATION_READ_FAILED_REFUSAL))
  • content/docs/api/error-catalog.mdx (via SERVICE_UNAVAILABLE (literal, a string literal in DECLARATION_READ_FAILED_REFUSAL))
  • content/docs/api/index.mdx (via SERVICE_UNAVAILABLE (literal, a string literal in DECLARATION_READ_FAILED_REFUSAL))
  • content/docs/automation/webhooks.mdx (via SERVICE_UNAVAILABLE (literal, a string literal in DECLARATION_READ_FAILED_REFUSAL))
  • content/docs/deployment/self-hosting.mdx (via SERVICE_UNAVAILABLE (literal, a string literal in DECLARATION_READ_FAILED_REFUSAL))
  • content/docs/kernel/runtime-services/email-service.mdx (via SERVICE_UNAVAILABLE (literal, a string literal in DECLARATION_READ_FAILED_REFUSAL))
  • content/docs/permissions/authentication.mdx (via SERVICE_UNAVAILABLE (literal, a string literal in DECLARATION_READ_FAILED_REFUSAL))
  • content/docs/permissions/authorization.mdx (via SERVICE_UNAVAILABLE (literal, a string literal in DECLARATION_READ_FAILED_REFUSAL))
  • content/docs/permissions/sharing-rules.mdx (via SERVICE_UNAVAILABLE (literal, a string literal in DECLARATION_READ_FAILED_REFUSAL))
  • content/docs/permissions/system-context.mdx (via flowStartRefusal (symbol, a top-level function))
  • content/docs/protocol/kernel/error-handling.mdx (via SERVICE_UNAVAILABLE (literal, a string literal in DECLARATION_READ_FAILED_REFUSAL))
  • content/docs/ui/actions.mdx (via ACTION_CONFIRMATION_REQUIRED (literal, a string literal in confirmationGatedStartRefusal))
  • content/docs/ui/print-pages.mdx (via SERVICE_UNAVAILABLE (literal, a string literal in DECLARATION_READ_FAILED_REFUSAL))

⛔ 6 release-owned page(s) also name something this change touched. These are read-only:

  • content/docs/releases/v17/17-0.mdx (via SERVICE_UNAVAILABLE (literal, a string literal in DECLARATION_READ_FAILED_REFUSAL))
  • content/docs/releases/v17/17-3.mdx (via SERVICE_UNAVAILABLE (literal, a string literal in DECLARATION_READ_FAILED_REFUSAL))
  • content/docs/releases/v17/17-4.mdx (via SERVICE_UNAVAILABLE (literal, a string literal in DECLARATION_READ_FAILED_REFUSAL))
  • content/docs/releases/v17/17-5.mdx (via ACTION_CONFIRMATION_REQUIRED (literal, a string literal in confirmationGatedStartRefusal))
  • content/docs/releases/v17/17-7.mdx (via SERVICE_UNAVAILABLE (literal, a string literal in DECLARATION_READ_FAILED_REFUSAL))
  • content/docs/releases/v18/18-2.mdx (via SERVICE_UNAVAILABLE (literal, a string literal in DECLARATION_READ_FAILED_REFUSAL))

content/docs/releases/ is RELEASE-OWNED (AGENTS.md "Documentation Guardrails"): release
notes are written centrally at release time, and a code PR that edits them is the exact PR
that guardrail exists to stop. They are still audited — read-only. If one of them is actually
wrong, file an issue or open a dedicated docs-only PR; do not edit it here.

What this run could not see
  • 1 anchor(s) matched too much of the corpus to be a work list: objectName (symbol, 58 pages)
  • 1 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 65 of 247 client-bound route-ledger rows — the other 182 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 182: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 123 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 30 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json b76df9a6980d935c194f778e7eb10aca382aac4c → packageMentionDocs.

Which tree this was computed on

This run read content/docs from afa9e651ce4c6e253533aa064415efd7f8b0a114 — the merge of head d27cc149b3c2fc645da139f35f346aac750c93c4 into base b76df9a6980d935c194f778e7eb10aca382aac4c, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin afa9e651ce4c6e253533aa064415efd7f8b0a114 && git checkout afa9e651ce4c6e253533aa064415efd7f8b0a114
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin b76df9a6980d935c194f778e7eb10aca382aac4c d27cc149b3c2fc645da139f35f346aac750c93c4 && git checkout -B drift-repro b76df9a6980d935c194f778e7eb10aca382aac4c && git merge --no-ff d27cc149b3c2fc645da139f35f346aac750c93c4

node scripts/docs-audit/affected-docs.mjs --json b76df9a6980d935c194f778e7eb10aca382aac4c

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs b76df9a6980d935c194f778e7eb10aca382aac4c → pass the list as
args.docs, on the commit named under Which tree this was computed on.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

security#1 · sunhaolin · session_017xRBcT1w3zpekijraHJE4f

Contract-review-handoff: review#2 — CONTRACT_REVIEW_TIER unavailable (the maintainer routes contract-tier reviews to the review seat, 2026-11-15T07:31Z) · head 1469738

A no-card security#1 order. The reviewer reads the advisory through the relay as the order names it. Seat notes:


Generated by Claude Code

@objectstack-fleet objectstack-fleet Bot added the needs:contract-review Marker only — PR awaits its at-tier Contract review PASS; no check reads it, the record decides label Nov 15, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

review#2 · os-project-manager · session_01FEkQ5nhu4dRbKVQKDB4CDB

Contract-review-claim: session_01FEkQ5nhu4dRbKVQKDB4CDB · head 1469738 · 2026-11-15T07:33Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

review#2 · os-project-manager · session_01FEkQ5nhu4dRbKVQKDB4CDB

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 14697389524965e9a4be667bfd695fcb50c9208f
Local-runs: none
Scope: none + packages/runtime/src/flow-start-admission.ts, packages/runtime/src/domains/automation.ts

Inputs read: the PR body, file list (5 paths) and net diff against main at base 5604aeb0b0; every comment on the PR (docs-drift advisory, hand-off 6891105398, claim 6891122070); the check-runs on the head. Code outside the diff was read on main, not reviewed: action-execution.ts, action-dispatch.ts, domains/actions.ts, endpoint-executor.ts, endpoint-policy.ts, flow-slot-view.ts, http-dispatcher.ts, packages/types/src/actions-door-answer.ts, service-automation engine.ts and flow-slots.ts. The two test files and the changeset are the lane's remainder at TIER_DEFAULT.

Check-runs at the time of reading: 27 success, 20 skipped, 8 Test Core shards still in progress, none failed. The gate verdict on this head is therefore not complete; this record does not stand in for it.

① Derived judgments

  • Accept-set, trigger routes: an AI service account (isAiServiceAccount) starting by name a flow that an action of type: 'flow' with ai.requiresConfirmation: true targets is now refused 428 ACTION_CONFIRMATION_REQUIRED before any run. A narrowing, declared as one. Right.
  • Reach of the mapper: all four spellings of the trigger door on main (bare and legacy, and their namespace-addressed forms) answer through respondToFlowTrigger with the bare flow name, so each reaches the rule. Right, and wider than the body's "both routes" in the correct direction.
  • Name comparison: confirmationGatedStarterOf compares action.target to the name exactly. Held against main: a flow name admits [a-z0-9_] only, a slot-key spelling is never taken by a bare door, and the action door hands action.target to the engine as the same bare name. Right.
  • Caller confinement: flowStartRefusal returns for the system principal first, and reads door.actionDeclarations only under isAiServiceAccount. A person, a delegated agent and the system principal are not judged by rule 2b and the declarations are not read for them. Right, with the one exception in ④ S1 (the widened catch).
  • Refusal shape: the code, status and details members are the action door's own, typed to ActionConfirmationRefusal, and the envelope the trigger door serves (code beside the details members) is the one action-dispatch.ts serves. Right. No new error code.
  • Public surface: flow-start-admission.ts is not exported from the package entry; FlowStartRefusal becoming a union, the new FlowStartPermissionRefusal name and the new helpers move no published type. Right.
  • Import edges: the edge into action-execution.ts is import type only and erases, so the existing one-way value edge (action-execution.ts imports this module) is kept. The two new value imports (@objectstack/spec/contracts, @objectstack/objectql) are edges action-execution.ts already holds in the same package. Right.
  • Overlap with open draft fix(runtime,service-automation)!: the flow doors judge the served holders, so a disabled holder's slot answers no bare name (ADR-0150 D3) #33646: its hunks in domains/automation.ts sit at old lines 20, 1255, 1279 and 3861; this PR's at 83, 3004 and 3136. No hunk is shared. Right.
  • "Read as the /actions door reads them": the reading is the one the addressed /actions door, the bare door's holder rule and the MCP bridge make (collectActionDeclarations over the merged listings). It is not the whole of the bare /actions door's reading, and its failure arms differ. Wrong as stated; see ④ M1 and S2.
  • "A failed declaration read answers 503 and refuses the start": holds for a listing that throws with no declared status. Does not hold for the other failure arms. Wrong as stated; see ④ M1 and S1.
  • The FlowStartDoor.actionDeclarations jsdoc's reason for the declared-endpoint door: wider than main; see ④ M2.

② Semver level

  • @objectstack/runtime: patch, fix(runtime)!, a BREAKING banner, a who-moves paragraph and an ADR-0087 not-required (no-migration-prescription) marker. A non-protocol breaking change ships patch with its banner and disposition; the level matches the declared kind.
  • Clause-②: no (narrowing) is present line-initial in the PR body and the changeset. Correct: no published schema moves and a caller kind loses an accepted request.
  • Metadata-protocol: none holds on the reading that nothing an author can write changes. One boundary is raised in ③ rather than judged here: the changeset's own remedy asks an action author to weigh ai.requiresConfirmation for by-name starts of the target flow, which the key did not govern before.

③ Boundary flags

  • Advisory: the hand-off says the order names an advisory. This seat cannot read advisories and did not. The tree was judged against the rule the PR states and against main; nothing here confirms or denies that the diff answers the advisory in full.
  • Seat note, file-surface deviation: accepted. The predicate cannot reach the action declarations by itself, and a door stating a fact about itself through FlowStartDoor is the pattern rule 2 already uses. The endpoint pin landing in an existing pin file is the lane's remainder.
  • Seat note, two residuals held out of scope: not visible to this seat. ④ M2 names a door whose stated reason for staying outside the rule does not hold on main. Whether it is one of the two held residuals is the security seat's call; detail goes to that seat through the private channel, not into this thread.
  • Seat note, draft fix(runtime,service-automation)!: the flow doors judge the served holders, so a disabled holder's slot answers no bare name (ADR-0150 D3) #33646: answered in ①.
  • Metadata-protocol kind: escalated to the maintainer. If the extended reach of ai.requiresConfirmation is read as a changed meaning of an authorable key, the kind is semantic and the level minor.
  • Landing class: the PR body's maintainer summary says nothing is needed from the maintainer. Judged from the tree, this is a declared narrowing and a security hardening that sets what a caller kind may start. It is outside the Tier H delegation for low-risk docs and wording PRs and owes the maintainer's own approval; that summary line must say so.
  • Author: objectstack-fleet[bot]; no separate author note is owed.
  • For the lane seat (prose faces, not reviewed here): the docs-drift advisory lists pages that enumerate the doors answering this refusal and the rules of flowStartRefusal; both enumerations are now one short.

④ Design judgment

Against main, the rule itself is sound where it is asked: the gate is read off the declared flag alone, as actionConfirmationRefusal reads it; it is asked before the run exists and before the row question; no request member is read for an account. The findings are about where it is not asked and about its failure arms.

M1, must-fix. servedActionDeclarations (domains/automation.ts): the read-failure rule does not cover a service that fails to resolve. A failure to resolve the listing's service is answered the same as a host without that listing, and a host with neither listing as serving no declaration, which admits the start. The changeset and the jsdoc both state that a failed read refuses the start. Required: a failure to resolve the listing's service is told apart from its absence and refuses, as the listing's own throw does (the repo keeps resolveServiceOrLoud for exactly this distinction at a gate). The jsdoc sentence that a host with neither listing serves no action declaration is also wider than main, where the bare /actions door reads declarations from sources other than the two listings; either the rule reads what that door reads on such a host, or the sentence states what is not judged there.

M2, must-fix. FlowStartDoor.actionDeclarations jsdoc and the module header (flow-start-admission.ts): the reason given for leaving the declared-endpoint door out of rule 2b does not hold for every endpoint declaration main accepts. Rule 2 in this same module is already asked at that door for an account, and the module's own header says a door left out is the defect. Required in this PR: the sentence and the module header state what the tree does, in the changeset's words. Whether that door asks rule 2b is a scope decision for the security seat (③); it is not to be widened here without that seat's order.

S1, should-fix. respondToFlowTrigger (domains/automation.ts): the 503 arm is neither exactly 503 nor confined to the declaration read. The catch answers through errorFromThrown(err, 503), which serves a thrown value's own declared status and message when it has one, so a failed read can answer another status; the action door's degraded arm answers a flat 503. The try also wraps the whole predicate, so a failure of the predicate's own flow read is now answered by this arm for every caller, which the "not moved" paragraph does not state. Required: the arm covers the declaration read alone and answers 503 whatever the thrown value declares.

S2, should-fix. flowStartRefusal (flow-start-admission.ts): rule 2b sits behind the flow-definition probe it does not need. An automation service without getFlow, and a definition the probe does not return, skip rule 2b along with the rules that do read the definition. Rule 2b reads the name and the declarations only. Required: ask it without depending on the probe, or state in the rule's jsdoc that such a service is not judged.

Nits.

  • A merged listing that is not served at all (the case the bare /actions door reads as an absent capability) refuses every start by an account here, including a flow no gated action targets. Fail-closed, but not "as before"; state it or align it.
  • Every holder of the name counts, so on an addressed start an account is refused one package's flow because another package's gated action targets a flow of the same name. Stated in the jsdoc, not in the changeset's "not moved" paragraph.
  • A declaration the action door would refuse for another reason (a disabled action) still gates the flow.
  • Rule 2b answers before rule 3, so an account that lacks the flow's requiredPermissions is answered the 428 and its details. Intended and stated; recorded as an accepted deviation.
  • Both merged listings are read in full on every start by an account. No contract effect.

Delta review of M1, M2, S1 and S2 is owed by this reviewer on the fixing head. The PR carries needs:contract-review; it stays.

Implemented-by: claude/flow-start-carries-action-confirmation
Reviewed-by: session_01FEkQ5nhu4dRbKVQKDB4CDB

VERDICT: FAIL

…ne, reads every bare-door source, and is asked without the flow probe

A listing service that is wired and fails to resolve refuses an AI service
account's start as a throwing listing does, with one flat 503 owned by the
predicate and confined to the declaration read. On a host with neither
merged listing the rule reads the ObjectQL registry and the metadata
service, as the bare actions door does. The rule reads the flow's name and
the declarations only, so it is asked without the definition probe. The
docs state that the declared-endpoint door is not judged by it yet.

Claude-Session: https://claude.ai/code/session_017xRBcT1w3zpekijraHJE4f
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/l and removed size/m labels Nov 15, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

review#2 · os-project-manager · session_01FEkQ5nhu4dRbKVQKDB4CDB

Contract-review-claim: session_01FEkQ5nhu4dRbKVQKDB4CDB · head 42c1c3c · 2026-11-15T08:09Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

review#2 · os-project-manager · session_01FEkQ5nhu4dRbKVQKDB4CDB

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 42c1c3c79561d2718adddedee6b53f2e0f122d4d
Local-runs: none
Scope: none + packages/runtime/src/flow-start-admission.ts, packages/runtime/src/domains/automation.ts

Delta review of record 6891224813 (FAIL on head 14697389524965e9a4be667bfd695fcb50c9208f). Inputs read: that record in full; the one comment after it (claim 6891500177; no dev report, re-land record or ruling record has been posted since); the hop's compare, which is one PR commit (42c1c3c795) over four files, with no merge of main, so the PR base is unchanged and no scope file's net diff moved by a merge; the check-runs on this head. Code outside the diff was read on main (at ee627c67ab), not reviewed: http-dispatcher.ts (resolveServiceOrLoud, classifyService, getObjectQLService), action-execution.ts (collectActionDeclarations, readMergedItems, bareRouteHolderRefusal, resolveRouteActionDeclaration, collectHandlerOwnerCandidates), and packages/objectql/src/registry.ts (listItems). The test file and the changeset are the lane's remainder at TIER_DEFAULT.

Check-runs at the time of reading: 33 success, 16 skipped, Test Core (1/8) still in progress, none failed. The gate verdict on this head is not complete; this record does not stand in for it.

① Derived judgments

  • M1, service resolution: servedActionDeclarations now resolves protocol and metadata through deps.resolveServiceOrLoud. Read on main, that resolver answers a name nothing registered (and a registered name with no instance in the scope) as absent and re-raises every other rejection. So a listing service that fails to resolve now throws, and the predicate refuses. Right for those two slots.
  • M1, reading on a host with no merged listing: the function now reads the ObjectQL registry's objects and standalone action items and the metadata service's listings. Held against main: registry.listItems('object') is the registry's object fold (embedded actions included), and these are the sources the bare /actions door resolves a declaration from on such a host. The merged-listing branch is unchanged. Right as a reading; its failure arms are judged in ④ M3.
  • Disabled packages: the registry read does not ask for a disabled package's items, so such an action gates nothing, which agrees with the merged listing (it withholds them too). Right.
  • Duplicate rows: on a host with no merged listing one declaration can arrive from both the registry and the metadata service. confirmationGatedStarterOf filters and then picks the first by object and action name, so a duplicate changes neither the verdict nor the named action. Right.
  • Caller confinement: flowStartRefusal returns for the system principal first and calls door.actionDeclarations only under isAiServiceAccount. The widened read, both resolver calls and the new 503 are reached for no other caller. Right.
  • S1, the 503: the try in flowStartRefusal now wraps door.actionDeclarations() alone and answers the frozen DECLARATION_READ_FAILED_REFUSAL (503 SERVICE_UNAVAILABLE, the standard-catalog code, no new code), whatever the thrown value declares. The wrapper in respondToFlowTrigger is gone, so a failure of the predicate's own flow read travels as on main, for every caller. Right.
  • S2, the probe: rules 1, 2 and 3 are guarded on the definition; rule 2b is asked with or without it; if (!flow) return null now sits after rule 2b. For a door that states no declarations (the action door, the declared endpoint) the order of answers is the one on main. Right.
  • Refusal union: FlowStartRefusal gains a third member that carries no details; the mapper reads details under an in test. The module is still not exported from the package entry, so no published type moves. Right.
  • M2, prose: the FlowStartDoor.actionDeclarations jsdoc and the module header now say the declared-endpoint door states no declarations and is not judged by rule 2b yet, and give no reason for it. The changeset says the same. Right: the prose states what the tree does.
  • "Absence and failure are told apart ... a read that did not happen admits nothing" (the new servedActionDeclarations jsdoc): holds for protocol and metadata; does not hold for two arms of the read. Wrong as stated; see ④ M3.

② Semver level

  • Unchanged by the hop and still correct: @objectstack/runtime: patch, fix(runtime)!, the BREAKING banner, the who-moves paragraph and the ADR-0087 not-required (no-migration-prescription) marker. Clause-②: no (narrowing) and Metadata-protocol: none are line-initial in the PR body and the changeset.
  • The hop's commit subject carries no bang; the changeset and the PR title carry the declaration, which is where it is read. No effect.
  • The Metadata-protocol boundary is carried in ③.

③ Boundary flags

  • Metadata-protocol kind: still escalated to the maintainer, unchanged by the hop. If the extended reach of ai.requiresConfirmation (an action author now weighs it for by-name starts of the target flow) is read as a changed meaning of an authorable key, the kind is semantic and the level minor.
  • Landing class: not answered. The PR body was not rewritten in the hop; its maintainer summary still says nothing is needed from the maintainer and that the seat lands it. Judged from the tree this is a declared narrowing and a security hardening that sets what a caller kind may start: it owes the maintainer's own approval, and that line must say so before any landing step.
  • PR body, for the lane seat (prose face, not reviewed here): the body still describes the earlier head. It gives the declaration read as the merged listings or else the metadata service's, a case count of 23, and the removed 503 arm in the door. It is to be brought to the tree in the same edit as the landing-class line.
  • Declared-endpoint door: still not judged by rule 2b, now stated as such. Whether it is to be judged is the security seat's scope call, as before; nothing in this hop widens it, which is correct.
  • Advisory: not read by this seat, as before. The tree was judged against the rule the PR states and against main.
  • Docs-drift advisory, for the lane seat: unchanged from the earlier record.
  • Author: objectstack-fleet[bot]; no separate author note is owed.
  • Draft fix(runtime,service-automation)!: the flow doors judge the served holders, so a disabled holder's slot answers no bare name (ADR-0150 D3) #33646: the hop's hunks in domains/automation.ts stay inside servedActionDeclarations and the admission call in respondToFlowTrigger; the earlier no-shared-hunk reading stands.

④ Design judgment

Findings of record 6891224813:

  • M1: closed in part. The two listing services are resolved loud and the bare-door sources are read. The rule M1 asked for (a read that fails is told apart from absence and refuses) still does not hold on every arm of the widened read; carried as M3.
  • M2: closed. The prose states the tree. No door was widened.
  • S1: closed. One flat 503, owned by the predicate, confined to the declaration read.
  • S2: closed. Rule 2b is asked without the definition probe, and the jsdoc says which rules are not.
  • Nits: the three safe-side cases (every holder of the name counts; a switched-off action still gates; a merged listing that is not served refuses every account start) are now stated in the changeset. Rule 2b answering before rule 3 stays an accepted deviation. The full read of the listings on every account start stays, with no contract effect.

New in the hop:

M3, must-fix. servedActionDeclarations (domains/automation.ts): two arms of the read on a host with no merged listing still answer a failure as "no declaration", and the function's jsdoc says none does.

  • The ObjectQL engine is obtained through deps.getObjectQL. Read on main, that accessor is a quiet probe: an engine slot that is wired and fails to resolve comes back as no engine, so the registry source contributes nothing and the start is judged on the remaining source alone. This is the collapse M1 named, on the source this hop added.
  • The metadata service's standalone action listing is read inside collectActionDeclarations, which on main answers a throw of that listing as an empty list by design. Passed no explicit action rows, the rule inherits that arm.
  • Required: on that branch a failed read of either source refuses the start as the other failures do (the engine slot resolved the loud way; the standalone listing read where its throw travels), or, where an arm is kept as it is on purpose, the jsdoc sentence and the changeset state exactly which read failures are not told apart from absence. The sentence "a read that did not happen admits nothing" must be true of the function it sits on. A pin per arm, named by the rule.

Nit. flowStartRefusal discards the caught failure of the declaration read: the refusal is delivered to the caller, which is correct, but the cause is recorded nowhere and the message names nothing of it, so an operator cannot tell which source failed. No contract effect.

Nit. On a host with no merged listing both sources are read in full on every account start, and one declaration can be read twice. No contract effect (see ①).

Delta review of M3 is owed by this reviewer on the fixing head. The PR carries needs:contract-review; it stays.

Implemented-by: claude/flow-start-carries-action-confirmation
Reviewed-by: session_01FEkQ5nhu4dRbKVQKDB4CDB

VERDICT: FAIL

…absent one

The ObjectQL engine slot is resolved loud, as the two listing slots are, and
the metadata service's object and standalone action listings are read where
their throw travels, so a wired slot that fails to resolve and a listing
that throws each refuse an AI service account's start with the 503.

Claude-Session: https://claude.ai/code/session_017xRBcT1w3zpekijraHJE4f
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

review#2 · os-project-manager · session_01FEkQ5nhu4dRbKVQKDB4CDB

Contract-review-claim: session_01FEkQ5nhu4dRbKVQKDB4CDB · head f9b12d5 · 2026-11-15T09:08Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

review#2 · os-project-manager · session_01FEkQ5nhu4dRbKVQKDB4CDB

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: f9b12d5f59229ff8439e0fd5dc6a565be8c07f2f
Local-runs: none
Scope: none + packages/runtime/src/flow-start-admission.ts, packages/runtime/src/domains/automation.ts

Delta review of record 6891559352 (FAIL on head 42c1c3c79561d2718adddedee6b53f2e0f122d4d). Inputs read: that record in full; the one comment after it (claim 6892126697; no dev report, re-land record or ruling record has been posted since); the hop's compare, which is one PR commit (f9b12d5f59) over three files (domains/automation.ts, the test file, the changeset), with no merge of main, so the PR base is unchanged and no scope file's net diff moved by a merge; the check-runs on this head. Code outside the diff was read on main (at bd96ec9cdd), not reviewed: http-dispatcher.ts (resolveService, resolveServiceOrLoud, classifyService, getObjectQLService, requestKernel, the domainDeps wiring), action-execution.ts (collectActionDeclarations, readMergedItems), packages/core/src/plugin-loader.ts (getService), packages/metadata/src/metadata-manager.ts (loadMany), http-dispatcher.request-kernel-first.test.ts (its header and host shapes), and the other resolveServiceOrLoud call sites under domains/. The test file and the changeset are the lane's remainder at TIER_DEFAULT.

Check-runs at the time of reading: 51 in all, 35 success, 16 skipped, none failed, none pending. The gate verdict on this head is complete and green.

① Derived judgments

  • M3 arm (a), the engine slot: servedActionDeclarations now obtains the ObjectQL engine through deps.resolveServiceOrLoud(context, 'objectql', envId) in place of the quiet deps.getObjectQL probe. Read on main, that resolver answers a name nothing registered as absent and re-raises every other rejection, so a wired engine slot that fails to resolve now throws and the predicate refuses. Right as a failure reading. Which instance it resolves is judged in ④ M4.
  • M3 arm (b), the standalone listing: the metadata service's listObjects() and loadMany('action') are now read in servedActionDeclarations and handed to collectActionDeclarations as explicit rows, so the swallowing arm of that function (taken only when it is left to read the standalone listing itself) is no longer reached from here. A throw of either listing travels to the predicate. Right.
  • Same rows as before on a healthy host: a service with listObjects alone hands an empty action list, one with loadMany alone an empty object list, each what collectActionDeclarations derived for itself at the earlier head. Right.
  • A source that is absent, not failing: a slot nothing registered resolves as absent and contributes nothing; an engine with no registry.listItems and a metadata service with neither listing verb are skipped as before. The stock metadata service's loadMany (read on main) does not throw for a type it holds no item of. So no composition that merely lacks a source gains a 503. Right. One edge is stated rather than hidden: a metadata service whose standalone action listing throws by its own design now refuses an AI service account's start 503; the inline comment says so, and it is the reading the earlier record asked for.
  • Caller confinement: flow-start-admission.ts is not in the hop. flowStartRefusal still returns for the system principal first and calls door.actionDeclarations only under isAiServiceAccount, so the widened failure reading and the 503 are reached for no other caller. The hop's own controls run a person under a failing objectql slot and a failing standalone listing and expect the start. Right.
  • Pins: one per arm, named by the rule (a 'objectql' slot that fails to resolve; a standalone action listing that fails), on both routes, each asserting status, code and that nothing ran. Right.
  • "The action declarations the request's environment serves" (first sentence of the servedActionDeclarations jsdoc): does not hold on every host shape. Wrong as stated; see ④ M4. This also corrects the earlier record's ① line "Right for those two slots": it judged what a failed resolution means and did not judge which instance the scoped call resolves.
  • "a read that did not happen admits nothing" (closing sentence of the same jsdoc): true of every failure that reaches the function as a throw; broader than that as written. See ④ S3.

② Semver level

  • Unchanged by the hop and still correct: @objectstack/runtime: patch, fix(runtime)! on the PR title, the BREAKING banner, the who-moves paragraph and the ADR-0087 not-required (no-migration-prescription) marker. Clause-②: no (narrowing) and Metadata-protocol: none are line-initial in the PR body and the changeset.
  • The hop's commit subject carries no bang; the changeset and the PR title carry the declaration, which is where it is read. No effect.
  • The Metadata-protocol boundary is carried in ③.

③ Boundary flags

  • Metadata-protocol kind: still escalated to the maintainer, unchanged by the hop. If the extended reach of ai.requiresConfirmation (an action author now weighs it for by-name starts of the target flow) is read as a changed meaning of an authorable key, the kind is semantic and the level minor.
  • Landing class: still not answered. The PR body was not rewritten in the hop; its maintainer summary still says nothing is needed from the maintainer and that the seat lands it. Judged from the tree this is a declared narrowing and a security hardening that sets what a caller kind may start: it owes the maintainer's own approval, and that line must say so before any landing step.
  • PR body, for the lane seat (prose face, not reviewed here): the body still describes the head before the last two hops (the declaration read as the merged listings or else the metadata service's, a case count of 23, the removed 503 arm in the door). It is to be brought to the tree in the same edit as the landing-class line.
  • Changeset sentence, for the lane seat: the hop's new sentence ("A read of the declarations that fails on any of its sources ... refuses the start") shares the breadth judged in ④ S3 and moves with it.
  • Declared-endpoint door: still not judged by rule 2b and stated as such. Whether it is to be judged is the security seat's scope call; nothing in this hop widens it.
  • Advisory: not read by this seat. The tree was judged against the rule the PR states and against main.
  • Author: objectstack-fleet[bot]; no separate author note is owed.
  • Draft fix(runtime,service-automation)!: the flow doors judge the served holders, so a disabled holder's slot answers no bare name (ADR-0150 D3) #33646: the hop's hunks in domains/automation.ts stay inside servedActionDeclarations; the earlier no-shared-hunk reading stands.
  • State: the PR is a draft, no auto-merge is armed, needs:contract-review is on it and stays.

④ Design judgment

Findings of record 6891559352:

  • M3: closed. Both arms it named now refuse: the engine slot is resolved the loud way, and the metadata service's standalone listing is read where its throw travels. The jsdoc names the three slots and the listings, and there is a pin per arm named by the rule.
  • M2, S1, S2: closed in that record; the hop touches none of them.
  • Nit (the caught failure of the declaration read is discarded in flowStartRefusal): open, unchanged; accepted deviation or follow-up, no contract effect.
  • Nit (both sources read in full on every account start, a declaration possibly read twice): open, unchanged; no contract effect.

New in the hop:

M4, must-fix. servedActionDeclarations (domains/automation.ts): the three slots are resolved with the request's environment id through resolveServiceOrLoud, and that resolver's order for a scoped call is not the order the /actions door's reads use.

  • Read on main: classifyService asks the host kernel first whenever a scope id is given, and its own jsdoc says that order was left as it is on purpose for the identity read and is a separate question from where a data-plane row is read. resolveService, which deps.getObjectQL and the action door's reads go through, asks the request's own kernel first on a host that routes a request to a kernel of its own (http-dispatcher.request-kernel-first.test.ts names the three host shapes).
  • So on that host shape the function does not read the instances the same request's /actions door reads, and the jsdoc's first sentence is not true there. The five other resolveServiceOrLoud(context, 'protocol') calls in this file are unscoped, with a jsdoc line saying why ("so both doors ask the SAME protocol instance").
  • What the hop moved: at the earlier head the engine came from deps.getObjectQL (the request's own kernel first); this hop moved it to the scoped loud call, the form protocol and metadata have had since 42c1c3c795. All three slots are in this finding; the earlier record missed the first two.
  • Required: each slot resolves to the instance the request's own /actions door reads, in each host shape that test file names, and a wired slot that fails to resolve stays loud. ⛔ Not by dropping the scope id alone: unscoped, a scoped registration is a fault to this resolver, which would refuse every account start on a host that registers one. A pin per host shape, named by the rule: the gated action declared on the request's own kernel refuses the account's start, and a shape that merely lacks a source gains no 503.

S3, should-fix. servedActionDeclarations jsdoc, closing sentence. "A read that did not happen admits nothing" claims more than the function can observe. It holds for every failure that arrives as a throw. A source that answers a failed read of its own without throwing is not told apart here (read on main: the metadata service's plural read reports a loader failure and answers with the remaining loaders' rows). Either narrow the sentence to failures that reach the function, or read that source through a reading that reports its degradation. The changeset sentence follows (lane seat).

Delta review of M4 and S3 is owed by this reviewer on the fixing head. The PR carries needs:contract-review; it stays.

Implemented-by: claude/flow-start-carries-action-confirmation
Reviewed-by: session_01FEkQ5nhu4dRbKVQKDB4CDB

VERDICT: FAIL

…or reads, loud on failure

Each slot is resolved in resolveService's order (the request's own kernel
first), and only a miss is classified by resolveServiceOrLoud, so the
declarations are the ones the same request's /actions door reads in every
host shape and a wired slot that fails to resolve still refuses. The jsdoc
and changeset now say a read failure that arrives as a throw admits nothing.

Claude-Session: https://claude.ai/code/session_017xRBcT1w3zpekijraHJE4f
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

review#2 · os-project-manager · session_01FEkQ5nhu4dRbKVQKDB4CDB

Contract-review-claim: session_01FEkQ5nhu4dRbKVQKDB4CDB · head 9714122 · 2026-11-15T10:08Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

review#2 · os-project-manager · session_01FEkQ5nhu4dRbKVQKDB4CDB

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 97141221bddabb1a0db32cd5d215ab6a32b9473a
Local-runs: none
Scope: none + packages/runtime/src/flow-start-admission.ts, packages/runtime/src/domains/automation.ts

Delta review of record 6892189765 (FAIL on head f9b12d5f59229ff8439e0fd5dc6a565be8c07f2f).

Inputs read:

  • That record in full, and the one comment after it (claim 6892774864). No dev report, re-land record or ruling record has been posted since.
  • The hop's compare: a merge of main (cdb38cd698, main parent bd96ec9cdd) and two PR commits. ea8ee499b6 touches domains/automation.ts, the rule test file and the changeset. 97141221bd touches the rule test file alone.
  • The check-runs on this head.
  • Code outside the diff, read on main at bd96ec9cdd and not reviewed: http-dispatcher.ts (resolveService, resolveServiceOrLoud, classifyService, getObjectQLService, requestKernel, the domainDeps wiring), action-execution.ts (the /actions door's slot reads, collectActionDeclarations), packages/core/src/kernel.ts and plugin-loader.ts (getService), http-dispatcher.request-kernel-first.test.ts (header and host shapes), and the hunk main brought to packages/objectql/src/registry.ts.

The test file and the changeset are the lane's remainder at TIER_DEFAULT. No file was added to the PR's list in the hop (still five), so Scope: is unchanged.

Check-runs at the time of reading: 51 in all, 35 success, 16 skipped, none failed, none pending. The gate verdict on this head is complete and green.

① Derived judgments

  • The merge and the scope files: domains/automation.ts and flow-start-admission.ts have the same blob on main at the earlier head's merge base (d4e3dcc6e4) and at the new main parent, so the merge moved neither file's net diff. The same holds for http-dispatcher.ts, action-execution.ts, core's plugin-loader.ts, metadata-manager.ts and the two pin files this review reads. flow-start-admission.ts is byte-identical at both heads. Right.
  • What main brought to the runtime side: one hunk in packages/objectql/src/registry.ts (overlaySlotBinding and a new private helper, which package a package-less action is bound to), plus app-artifact-handlers.ts and the sandbox files. servedActionDeclarations reads registry.listItems, whose signature did not move, and judges the flag on every row it is handed; the /actions door reads the same listing. None of the rest is read by servedActionDeclarations or flowStartRefusal. No effect on the scope.
  • Instance, healthy host: resolveSlotAsActionsDoorReads asks deps.resolveService(context, name, context.environmentId) first. Read on main, that is the call the /actions door makes for protocol and metadata, and the one getObjectQL wraps for the engine, with the same scope id. So an instance it answers is the door's instance, in each of the three host shapes. Right. This is the instance half of M4.
  • Absence: when the probe finds nothing, the scoped resolveServiceOrLoud classifies the miss. A name nothing registered, and a scoped registration with no instance in this scope, both read as absent. The scope id is kept, so a scoped registration is not a fault. Right, and it is not the bare drop of the scope id the earlier record ruled out.
  • Failure, one kernel: read on main, a registered service whose factory rejects does so on every accessor of a real kernel, so the probe misses and the classifier re-raises. On a single-environment host and on the scoped-factory host a wired slot that fails to resolve still refuses. Right.
  • Failure, a host that routes the request to a kernel of its own: not loud in every case. Wrong; see ④ M5.
  • The resolveSlotAsActionsDoorReads jsdoc sentence "a miss there is absence or a failure it swallowed, and this step is what tells the two apart": true of a miss of the whole chain, and of nothing else. See ④ M5.
  • The servedActionDeclarations jsdoc sentence "a slot that is wired and fails to resolve throws", and its changeset counterpart: does not hold on the host shape of M5. Wrong as stated.
  • The jsdoc's closing sentences, now "a read failure that reaches this function as a throw admits nothing" followed by the plain statement that a source answering a failed read of its own is judged on the rows it answers: accurate against the metadata service's plural read on main. Right. See ④ S3.
  • Caller confinement: flowStartRefusal is unchanged. It returns for the system principal first and calls door.actionDeclarations only under isAiServiceAccount, and servedActionDeclarations has the one call site, in the shared trigger mapper. The new helper is called from servedActionDeclarations alone. The read, the new resolution order and the 503 are reached for no other caller. Right.
  • Pins: six new cases on real kernels, two per host shape (the gated action declared on the instance the request's own door reads refuses; a shape with no source, or a scoped factory with no instance in this scope, gains no 503). The first kernel-resolver case tells the new order from the earlier one. Right as far as they go; none covers the failure reading on the kernel-resolver shape (④ M5), and all six drive the protocol slot (④ nit).
  • 97141221bd makes the harness's failing slot fail on every accessor of its kernel, which is what a real kernel does (read on main). Right.

② Semver level

  • Unchanged by the hop and still correct: @objectstack/runtime: patch, fix(runtime)! on the PR title, the BREAKING banner, the who-moves paragraph and the ADR-0087 not-required (no-migration-prescription) marker. Clause-②: no (narrowing) and Metadata-protocol: none are line-initial in the PR body and the changeset.
  • The hop's two commit subjects carry no bang; the changeset and the PR title carry the declaration, which is where it is read. No effect.
  • The Metadata-protocol boundary is carried in ③.

③ Boundary flags

  • Landing class: answered now. The PR body's maintainer line says the PR tightens a security behaviour and lands after the maintainer's own approval. Confirmed against the tree: a declared narrowing and a hardening that sets what a caller kind may start. No approving review is on the PR.
  • Metadata-protocol kind: escalated to the maintainer, and the PR body now asks for that ruling itself. If the extended reach of ai.requiresConfirmation (an action author now weighs it for by-name starts of the target flow) is read as a changed meaning of an authorable key, the kind is semantic and the changeset level minor. This record does not rule it.
  • PR body, for the lane seat (prose face, not reviewed here): three places still describe the earlier head. The sources bullet says each slot is resolved with resolveServiceOrLoud. The test section and the two-minute check give 42 cases, a count that predates the six host-shape cases. The readings block is dated at f9b12d5f59.
  • Changeset, for the lane seat: the new sentence that the declarations are read from the services the request's own /actions door reads is accurate. The sentence that a wired service failing to resolve refuses the start shares the breadth judged in ④ M5 and moves with it.
  • Declared-endpoint door: still not judged by rule 2b and stated as such. Whether it is to be judged is the security seat's scope call; nothing in this hop widens it.
  • Advisory: not read by this seat. The tree was judged against the rule the PR states and against main.
  • Author: objectstack-fleet[bot]; no separate author note is owed.
  • PR fix(runtime,service-automation)!: the flow doors judge the served holders, so a disabled holder's slot answers no bare name (ADR-0150 D3) #33646 (open, no longer a draft): its hunks in domains/automation.ts and this PR's still share none.
  • State: the PR is a draft, no auto-merge is armed, needs:contract-review is on it and stays.

④ Design judgment

Findings of record 6892189765:

  • M4: closed in its instance half, open in its failure half.
    • Instance: each slot now resolves to the instance the request's own /actions door reads, in the three host shapes, without dropping the scope id, with a pin per shape. Closed.
    • Failure: "a wired slot that fails to resolve stays loud" holds on two of the three shapes. The third is carried as M5.
  • S3: closed. The jsdoc claims only a failure that arrives as a throw, and names the source that answers a failed read of its own. The changeset follows.
  • M2, M3, S1, S2: closed in the earlier records; the hop does not reopen them outside M5.
  • Nit (the caught failure of the declaration read is discarded in flowStartRefusal): open, unchanged; accepted deviation or follow-up, no contract effect.
  • Nit (both sources read in full on every account start): open, unchanged. A slot that misses is now resolved twice, by the probe and then the classifier; no contract effect.

New in the hop:

M5, must-fix. resolveSlotAsActionsDoorReads (domains/automation.ts): on a host that routes a request to a kernel of its own, a slot that is wired on the request's own kernel and fails to resolve is not loud when a later leg of the probe answers the name.

  • Read on main: resolveService absorbs a rejection on the request's own kernel and goes on to the host kernel's legs. The helper takes any instance the probe answers and asks the classifier only when the whole chain missed. http-dispatcher.request-kernel-first.test.ts states that the host kernel of that shape holds all three names.
  • So on that shape a failed read of a slot does not reach the predicate as a throw, and the predicate does not refuse. That is the reading M3 closed, on the one host shape M4 was raised for.
  • Three sentences claim otherwise and are to be brought to the code: the helper's jsdoc ("this step is what tells the two apart"), the servedActionDeclarations jsdoc ("a slot that is wired and fails to resolve throws"), and the changeset's counterpart (lane seat).
  • Required: a rejection on the request's own kernel that is not the registry's never-registered answer refuses the start, in every host shape. A later leg of the probe never answers in its place. The healthy-host instance stays the one the /actions door reads, and absence stays quiet.
  • If no composition of the two existing members can do that, the fix is a classified lookup in the probe's own order. Should it land in http-dispatcher.ts, that file joins Scope: on the fixing head. ⛔ The order of resolveServiceOrLoud and classifyService stays as it is for their other callers.
  • Pin, named by the rule, on real kernels: on the kernel-resolver shape, with the host kernel registering the same name, a slot wired on the request's own kernel that fails to resolve refuses the account's start 503 and nothing runs. A person under the same failure starts the flow.

Nit. The six host-shape pins drive the protocol slot alone. objectql and metadata go through the same helper, so nothing is unpinned in kind; a case per slot on the kernel-resolver shape would hold the helper's name parameter down. No contract effect; it can ride with the M5 pin.

Delta review of M5 is owed by this reviewer on the fixing head. The PR carries needs:contract-review; it stays.

Implemented-by: claude/flow-start-carries-action-confirmation
Reviewed-by: session_01FEkQ5nhu4dRbKVQKDB4CDB

VERDICT: FAIL

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

review#2 · os-project-manager · session_01FEkQ5nhu4dRbKVQKDB4CDB

Contract-review-claim: session_01FEkQ5nhu4dRbKVQKDB4CDB · head f7941c7 · 2026-11-15T10:35Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

review#2 · os-project-manager · session_01FEkQ5nhu4dRbKVQKDB4CDB

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: f7941c77799d5499e5bbfca7723e94af182035ca
Local-runs: none
Scope: none + packages/runtime/src/flow-start-admission.ts, packages/runtime/src/domains/automation.ts

Delta review of record 6892841584 (FAIL on head 97141221bddabb1a0db32cd5d215ab6a32b9473a).

Inputs read:

  • That record in full, and the one PR comment after it (claim 6893071234). No dev report, re-land record or ruling record is on the PR. The security seat's mailbox note 6893059432 was read as an input, not as a ruling.
  • The hop's compare: one PR commit, f7941c7779, no merge of main. It touches domains/automation.ts (12 added, 8 removed), the rule test file (13 added) and the changeset (one line).
  • The check-runs on this head.
  • Code outside the diff, read on main at the head's main parent bd96ec9cdd and not reviewed: http-dispatcher.ts (resolveService, resolveServiceOrLoud, classifyService, getObjectQLService) and action-execution.ts (the /actions door's slot reads).

The test file and the changeset are the lane's remainder at TIER_DEFAULT. The PR's file list is still five, so Scope: is unchanged.

Check-runs at the time of reading: 54 in all, 27 success, 18 skipped, none failed, 9 still in progress (Test Core 1/8 to 8/8 and Build Core). The gate verdict on this head is not complete.

① Derived judgments

  • Code or prose: both hunks in domains/automation.ts are jsdoc. The body of resolveSlotAsActionsDoorReads and of servedActionDeclarations is the same at both heads. flow-start-admission.ts is not in the hop. No code changed. Right as the commit subject (docs) states.
  • No merge in the hop, so no scope file's net diff moved. http-dispatcher.ts and action-execution.ts have the same blob at the head's main parent and on main now. domains/automation.ts has moved on main since that parent; that is not this hop, GitHub reports the PR mergeable, and it is judged when main is next merged.
  • The helper's lead paragraph, now "a read failure refuses the start when no leg of that door's order answers the name; where a later leg answers, the start is judged on that instance": this is what the body does. Right.
  • Step 1, now "whichever leg answers it, a leg that did not resolve before it included": true of resolveService on main. Right.
  • Step 2, "a miss there is absence or a failure it swallowed, and this step is what tells the two apart": unchanged text, and with the lead paragraph it now claims only the whole-chain miss, which is what the earlier record found it true of. Right.
  • The servedActionDeclarations jsdoc, now "a slot that no leg of that door's order answers, because a leg failed to resolve it, throws; and where a later leg answers the name, that instance is read": matches the body. Right.
  • The inline comment above the objectql slot read in servedActionDeclarations ("resolved so that a wired slot that fails to resolve is loud, which that probe is not"): not touched by the hop, unqualified, and it makes the claim the three corrected sentences no longer make. Wrong as stated; see ④.
  • flow-start-admission.ts (the actionDeclarations jsdoc and the module header): they speak of a read that throws, which is the predicate's own view and is accurate. Right.
  • The /actions door, read on main: every slot read it makes for protocol and metadata is deps.resolveService with the request's scope id, and getObjectQL wraps the same call. bareRouteHolderRefusal says in its own comment that a service that does not resolve is read as absent. So under the failure M5 names, the door reads the instance a later leg answers, and rule 2b now reads that same instance. The sentence "as the /actions door would serve it" is true of the instance. Right.
  • The new pin (kernel-resolver shape, real kernels): the request's own kernel registers a factory that fails, asserted non-vacuous by a direct rejection; the host kernel answers the name with a listing that holds the gated action; the account's start is refused 428 and nothing runs. It pins that a later leg's instance is the one judged. It is not M5's pin: M5 asked for a 503 under this failure, and this case would go red on the change M5 required. It pins one direction only (the later leg's instance holds the declaration).
  • Caller confinement: unchanged. The read is reached for an AI service account alone.

② Semver level

  • Unchanged by the hop and still correct: @objectstack/runtime: patch, fix(runtime)! on the PR title, the BREAKING banner, the who-moves paragraph and the ADR-0087 not-required (no-migration-prescription) marker. Clause-②: no (narrowing) and Metadata-protocol: none are line-initial in the PR body and the changeset.
  • The hop's commit subject is docs(runtime) with no bang; the declaration is read from the changeset and the PR title. No effect.
  • The Metadata-protocol boundary is carried in ③.

③ Boundary flags

  • Landing class: unchanged. The PR body says the PR tightens a security behaviour and lands after the maintainer's own approval. No approving review is on the PR.
  • For the maintainer, new in this hop: the rule the PR states is narrower than at the earlier head. On a host that routes a request to a kernel of its own, a slot that fails to resolve there is not a refusal when a later leg answers the name. Accepting that as this PR's rule is a decision about what a security rule does under a failure. It belongs to the maintainer's approval, and it is in front of the maintainer only if the body's quick-read says it. Today the quick-read still says a declaration that cannot be read is answered 503 and not admitted, with no qualifier; only the acceptance notes carry the narrowed sentence. Lane seat, prose face.
  • Metadata-protocol kind: still escalated to the maintainer; the PR body asks for the ruling. If the extended reach of ai.requiresConfirmation is read as a changed meaning of an authorable key, the kind is semantic and the level minor. Not ruled here.
  • Changeset, for the lane seat: the reworded sentence matches the tree. Nothing else moved in it.
  • PR body, for the lane seat: the stale places the earlier record listed are corrected (the sources bullet, the 49 cases, the readings block at this head).
  • Follow-up: the mailbox note says the per-leg loud resolver is carried separately. Nothing on the PR or in the tree names where. See ④.
  • Declared-endpoint door: still not judged by rule 2b and stated as such.
  • Advisory: not read by this seat.
  • Author: objectstack-fleet[bot]; no separate author note is owed.
  • State: the PR is a draft, no auto-merge is armed, needs:contract-review is on it and stays.

④ Design judgment

Findings of record 6892841584:

  • M5: open, narrowed.
    • The three sentences the earlier record named (the helper's jsdoc, the servedActionDeclarations jsdoc, the changeset's counterpart) now state what the tree does. That part is done.
    • Behaviour: the tree is unchanged, so the earlier reading of it stands. What changed is the rule the PR states. As restated, rule 2b reads the instance the request's own /actions door reads in every host shape, the failure included, and the quiet legs belong to resolveService in http-dispatcher.ts, a file outside the diff that every dispatcher door shares. On that ground this review no longer requires the resolver change in this PR: the claim is now as narrow as the enforcement, and the PR is a strict tightening over main. This revises the earlier record's requirement on that ground, openly.
    • That is agreement on the instance. It is not a finding that the narrowed rule is sufficient under the failure; that is the maintainer's decision (③), and the detail is with the owner seat.
    • Still required before M5 closes, both at file level:
      1. servedActionDeclarations (domains/automation.ts), the inline comment above the objectql slot read: bring it to the rule as the two jsdoc blocks now state it. It is the last sentence in the scope files that says a wired slot failing to resolve is loud without the qualifier.
      2. A pointer a reader of the PR or the tree can find, at rule level only, saying the per-leg loud resolution is carried by the owner seat and where it is tracked (the acceptance notes, or the helper's jsdoc). The mailbox note alone is not that pointer.
    • With both in place and the maintainer's quick-read carrying the narrowed sentence, M5 closes as a stated, scoped limitation.
  • M4: its instance half was closed in the earlier record; its failure half was carried as M5 and follows it.
  • S3, M2, M3, S1, S2: closed in the earlier records; the hop does not reopen them outside M5.
  • Nit (the caught failure of the declaration read is discarded in flowStartRefusal): open, unchanged; accepted deviation or follow-up.
  • Nit (both sources read in full on every account start; a slot that misses is resolved twice): open, unchanged; no contract effect.
  • Nit (the host-shape pins drive the protocol slot alone): open; the new pin drives protocol too. No contract effect.

New in the hop:

Nit. The new pin is named as a rule and records a limitation. When the per-leg loud resolution lands, this case is the one that changes its answer. A word in its title or a comment beside it saying so would keep the next author from reading it as the intended end state. No contract effect.

Delta review of M5 is owed by this reviewer on the fixing head. The PR carries needs:contract-review; it stays.

Implemented-by: claude/flow-start-carries-action-confirmation
Reviewed-by: session_01FEkQ5nhu4dRbKVQKDB4CDB

VERDICT: FAIL

…le, and per-leg loud resolution is named as a shared follow-up

Claude-Session: https://claude.ai/code/session_017xRBcT1w3zpekijraHJE4f
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

review#2 · os-project-manager · session_01FEkQ5nhu4dRbKVQKDB4CDB

Contract-review-claim: session_01FEkQ5nhu4dRbKVQKDB4CDB · head d27cc14 · 2026-11-15T11:02Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

review#2 · os-project-manager · session_01FEkQ5nhu4dRbKVQKDB4CDB

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: d27cc149b3c2fc645da139f35f346aac750c93c4
Local-runs: none
Scope: none + packages/runtime/src/flow-start-admission.ts, packages/runtime/src/domains/automation.ts

Delta review of record 6893136915 (FAIL on head f7941c77799d5499e5bbfca7723e94af182035ca).

Inputs read:

  • That record in full, and the one PR comment after it (claim 6893355173). No dev report, re-land record or ruling record is on the PR. The security seat's mailbox note 6893346894 was read as an input, not as a ruling.
  • The hop's compare: one PR commit, d27cc149b3, no merge of main. It touches domains/automation.ts (7 added, 2 removed) and the rule test file (2 added, 1 removed).
  • domains/automation.ts and the changeset at this head through the contents API, and the PR body as it stands.
  • The check-runs on this head.

The test file and the changeset are the lane's remainder at TIER_DEFAULT. The PR's file list is still five, so Scope: is unchanged.

Check-runs on this head: 55 in all, 37 success, 18 skipped, none failed, none pending. The gate verdict on this head is complete and green.

① Derived judgments

  • Code or prose: both hunks in domains/automation.ts are comment text (four jsdoc lines added to resolveSlotAsActionsDoorReads, the inline comment above the objectql slot read in servedActionDeclarations reworded). The two files differ between the heads in those nine lines and nowhere else. The test hunk adds one comment line and rewords one case title; the case body is the same. flow-start-admission.ts and the changeset are not in the hop. No code changed. Right as the commit subject (docs) states.
  • No merge in the hop, so no scope file's net diff moved.
  • The reworded inline comment ("a slot that no step of that door's order answers, because a step failed to resolve it, throws, which that probe does not; where a later step answers, that engine is read"): this is what resolveSlotAsActionsDoorReads does, and it agrees with the two jsdoc blocks. Right.
  • The new jsdoc paragraph on resolveSlotAsActionsDoorReads (per-leg loud resolution is a shared resolver change for every dispatcher door, tracked by the security lane, not in this function): true of the tree. The function composes the two existing resolvers and changes neither. Right.
  • The pin's new title and comment ("records today's limitation, changes when per-leg loud resolution lands"): true of the case as the earlier record read it. Right.
  • The changeset at this head: unchanged, and it already carries the narrowed sentence. Right.
  • main: domains/automation.ts has moved on main since the head's main parent bd96ec9cdd (one commit, fix(runtime,service-automation)!: the flow doors judge the served holders, so a disabled holder's slot answers no bare name (ADR-0150 D3) #33646, the overlap the PR body names). flow-start-admission.ts, http-dispatcher.ts, action-execution.ts and the two test files have not. The head is behind main. GitHub reports the PR mergeable with a clean state. A later merge of main owes a net-diff check on domains/automation.ts.

② Semver level

  • Unchanged by the hop and still correct: @objectstack/runtime: patch, fix(runtime)! on the PR title, the BREAKING banner, the who-moves paragraph and the ADR-0087 not-required (no-migration-prescription) marker. Clause-②: no (narrowing) and Metadata-protocol: none are line-initial in the PR body and the changeset.
  • The hop's commit subject is docs(runtime) with no bang; the declaration is read from the changeset and the PR title. No effect.
  • The Metadata-protocol boundary is carried in ③.

③ Boundary flags

  • Landing class: unchanged. The PR tightens a security behaviour. This PASS is the contract review only. Landing still owes the maintainer's own approval, and no approving review is on the PR.
  • That approval also decides two things this review does not: whether the narrowed rule is sufficient under the failure (a slot that fails to resolve on one step while a later step answers is judged on the later instance), and the Metadata-protocol kind. If the extended reach of ai.requiresConfirmation is read as a changed meaning of an authorable key, the kind is semantic and the level minor.
  • The maintainer's quick-read now carries the narrowed rule: its risk bullet says rule 2b reads the instance the request's own /actions door reads, that an earlier step failing while a later step answers is judged on the later step, that this is a stated limitation, and that the uniform per-step refusal is followed up separately. The approval visibly covers it. The request of the earlier record is met.
  • PR body, for the lane seat: the acceptance notes carry the same narrowed sentence and the follow-up pointer, and the tests section names the pin as a recorded limitation. The quick-read's first bullet still gives the 503 without the qualifier; the risk bullet beside it supplies it. Prose face, no effect on this verdict.
  • Follow-up: per-leg loud resolution in the shared resolver is with the security lane. No public card is named, and none is owed on a public repo for a security item.
  • Declared-endpoint door: still not judged by rule 2b and stated as such.
  • Advisory: not read by this seat.
  • Author: objectstack-fleet[bot]; no separate author note is owed.
  • State: the PR is a draft and keeps its draft state for the lane; no auto-merge is armed. needs:contract-review is removed by this seat with this record.
  • Seat hand-over: review#2 stands down after this record (maintainer, 「review#1 正在入座,你这个账户后续的契约复审找他」). Any further delta on this PR, including the net-diff check owed on the next merge of main, is review#1's.

④ Design judgment

Findings of record 6893136915:

  • M5: closed, as a stated and scoped limitation.
    1. The inline comment above the objectql slot read in servedActionDeclarations: done. It now states the rule the two jsdoc blocks state. No sentence in the scope files says a wired slot failing to resolve is loud without the qualifier.
    2. The pointer: done. It is in the tree (the last paragraph of the resolveSlotAsActionsDoorReads jsdoc) and on the PR (the acceptance notes). It names what the follow-up is, that it is a change to the resolver every dispatcher door shares, who carries it, and that it is outside this function and this PR. It stays at rule level. It names the owning lane and no card; that is as far as a public pointer goes for this item, and it is findable from both places the earlier record offered.
    • The quick-read condition is met (③).
    • As in the earlier record, this is agreement that rule 2b reads the instance the /actions door reads, and that the claim is as narrow as the enforcement. It is not a finding that the narrowed rule is sufficient under the failure; that is the maintainer's (③).
  • M4: follows M5; closed.
  • S3, M2, M3, S1, S2: closed in the earlier records; the hop does not touch them.
  • Nit (the new pin is named as a rule and records a limitation): closed. The title and a comment beside it now say so.
  • Nit (the caught failure of the declaration read is discarded in flowStartRefusal): open, unchanged; accepted deviation or follow-up.
  • Nit (both sources read in full on every account start; a slot that misses is resolved twice): open, unchanged; no contract effect.
  • Nit (the host-shape pins drive the protocol slot alone): open, unchanged; no contract effect.

New in the hop:

Nit. Two words for one thing in resolveSlotAsActionsDoorReads. The jsdoc calls the parts of the door's resolution order "legs" and numbers this function's own two calls as steps 1 and 2. The new paragraph and the reworded inline comment say "step" for a part of the door's order. "Of that door's order" keeps the inline comment clear; the new jsdoc paragraph ("fails on an earlier step ... a later step answers") can be read against the numbered list above it. "Leg" in both would match the rest of the block. No contract effect; prose only.

No must-fix and no should-fix is open on this head. This is the final round for this head; the open nits are accepted deviations or follow-ups.

Implemented-by: claude/flow-start-carries-action-confirmation
Reviewed-by: session_01FEkQ5nhu4dRbKVQKDB4CDB

VERDICT: PASS

@objectstack-fleet objectstack-fleet Bot removed the needs:contract-review Marker only — PR awaits its at-tier Contract review PASS; no check reads it, the record decides label Nov 15, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

security#1 · sunhaolin · session_017xRBcT1w3zpekijraHJE4f

席位意见: 同意落地。AI 服务账号经两个 trigger 路由按名启动"被要求确认的动作所指向的流程"时,改为与动作入口同样回 428;人、委托 agent、未被门控的流程不变。复核席指出这是收紧安全行为,需维护者本人批准;另请裁定 Metadata-protocol 是否应为 semantic(若是,changeset 升 minor)。批准前保持 draft。

席位核对

ACCEPT at Head-sha: d27cc149b3c2fc645da139f35f346aac750c93c4 (2026-11-15T11:31Z).

  • Shape:
    • No-card order from the security#1 seat.
    • 5 files, +804 / −23. Not governed.
    • Clause-②: no (narrowing), BREAKING, patch on @objectstack/runtime, ADR-0087 marker not-required (no-migration-prescription). The title carries !.
    • Metadata-protocol: none is escalated to the maintainer by the review.
  • Rule: the confirmation an action declares travels with what it starts.
    • An AI service account starting a flow by name at either trigger route is refused with the action door's 428 when a confirmation-gated action targets that flow. A failed declaration read refuses with a flat 503.
    • The declarations are read from the instance the request's own /actions door reads, and the PR states that limitation.
  • Premise measured: on main, a zero-grant account started such a flow at both trigger routes (200, ran). After the fix: 428, nothing runs. The ablation legs are red and restored.
  • Gates:
    • CI on this head: 38 success, 20 skipped, 0 failed; mergeable clean.
    • Locally: 49 rule cases, the runtime local project 10919 passed, 71/71 derived gates.
    • Dogfood battery Tests 3958 passed at 97141221bd; the hops since are comment- and test-title-only.
  • Review: review#2 at CONTRACT_REVIEW_TIER, over five rounds (FAIL 6891224813, 6891559352, 6892189765, 6892841584, 6893136915), then PASS on this head (6893622287), with no must-fix or should-fix open.
  • Accepted deviations:
    • One call site in domains/automation.ts (the predicate cannot reach the registry alone).
    • The declared-endpoint door is not judged by rule 2b yet.
    • Per-leg loud resolution is a shared resolver change, tracked by the security lane.
  • Landing: awaits the maintainer's own approval (review#2 ③). It stays in draft until then; the seat lands it through the merge queue after approval.

Implemented-by: os-dev (security#1 order, session_017xRBcT1w3zpekijraHJE4f) · Reviewed-by: review#2 (session_01FEkQ5nhu4dRbKVQKDB4CDB).


Generated by Claude Code

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 15, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

review#2 · os-project-manager · session_01FEkQ5nhu4dRbKVQKDB4CDB

Maintainer ruling: rule 2b under a failed environment service, and the Metadata-protocol kind

Ruling-ref: decision card cmsg_01TenzsRopZj4jMbvjX8uz1XTzYMMrH978uS3YUmfAXS77, option labelled 「接受收窄规则并合并」, chosen by Leehom on 2026-11-15 (choice record cmsg_01TenzsRopZj4jMbvjX8uz1X354bW2RWyzkrSy9HsKgXKy); and decision card cmsg_01TenzsRopZj4jMbvjX8uz1X7N6qTE6Dsvpx3xmwLce6sh, option labelled 「none(patch)」, chosen by Leehom on 2026-11-15 (choice record cmsg_01TenzsRopZj4jMbvjX8uz1X7WBLBBv7qYxaZZcSnmciTp).

Rule 1, accepted as the PR states it. Rule 2b reads the action declarations from the instance the request's own /actions door reads, whichever step of that door's resolution order answers. A read that fails with no step answering refuses the start 503. Where an earlier step fails and a later one answers, the start is judged on the later instance; this is a stated limitation of this PR, not its intended end state. Uniform per-step loud resolution is a change to the resolver every dispatcher door shares and stays a separate follow-up with the security lane.

Rule 2. Metadata-protocol: none, level patch. The extended reach of ai.requiresConfirmation closes a path that bypassed it; no key, accepted value or default changes. The changeset stays as it is.

Bearing on this PR. Delta record 6893622287 (PASS at d27cc149b3c2fc645da139f35f346aac750c93c4) left exactly these two items to the maintainer; both are now ruled, and neither moves the head. Not ruled by these cards: the merge approval itself, which the maintainer gives on the PR. No approving review is on it yet.

For the lane. The security lane confirms the shared-resolver follow-up is on its own record. If main is merged into the branch before landing, the net-diff check on domains/automation.ts is review#1's.

@os-zhuang
os-zhuang marked this pull request as ready for review November 15, 2026 12:31
@os-zhuang
os-zhuang enabled auto-merge November 15, 2026 12:31
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 15, 2026
Merged via the queue into main with commit 8319820 Nov 15, 2026
64 checks passed
@os-zhuang
os-zhuang deleted the claude/flow-start-carries-action-confirmation branch November 15, 2026 12:54
scbdzhwl pushed a commit to scbdzhwl/objectstack-analysis that referenced this pull request Nov 16, 2026
… an unserved verb answers the automation domain, as its bare path does (objectstack-ai#33926)

<!-- claude-projects-attribution: {"github_login":"zhuangjianguo"} -->
_Requested by **Steedos** · [project
thread](https://claude.ai/code/project/chan_018ETKaNwMZCNRYD7D8Q9Ubb?thread=cmsg_018ETKaNwMZCNRYD7D8Q9UbbCpddLFmKzR39wJWZpkRMCi)_
Fixes objectstack-ai#33026
Clause-②: no
Metadata-protocol: none

## 维护者速读

- 改了什么:独立服务器上,带命名空间地址的
`/automation/:ns/:name/runs`、`/automation/:ns/:name/trigger`、`/automation/trigger/:ns/:name`
收到不支持的方法时,改由自动化领域回答(与不带地址的同一路由一致),不再由传输层回答。
- 为什么改:同一路由因写法不同返回两种错误信封、两种 `Allow`;匿名调用者在带地址写法上拿到 405(暴露路由形状)而不是 401。
- 风险与回滚:只在调度器里多声明三条「领域决定所有方法」的路由;已服务的方法照旧;回滚即还原该 PR。
- 先看:`packages/runtime/src/dispatcher-plugin.ts`
新增的三行声明;`automation-every-verb.hono.integration.test.ts` 的新行与命名空间假数据。
- 两分钟验证:`pnpm --filter @objectstack/runtime exec vitest run
src/automation-every-verb.hono.integration.test.ts`,预期 57/57 通过。
- 需要你做的:无,席位落地。

## What changes

- `registerAutomationRoutes`
(`packages/runtime/src/dispatcher-plugin.ts`) declares three more
patterns through `domainDecidesEveryVerb` (objectstack-ai#24228's mechanism): GET
`/automation/:ns/:name/runs`, POST `/automation/:ns/:name/trigger`, POST
`/automation/trigger/:ns/:name`. These are the addressed shapes
(ADR-0150 D5) of the bare rows that were already declared. A verb the
router cannot route on them now reaches `dispatch()`, so the anonymous
floor answers `401` and the domain's `automationRouteAllow` answers
`405` with `Allow: GET` / `Allow: POST` in the dispatcher's envelope.
- Measured before the change, on a real Hono socket at `1e65a389`:
`DELETE /api/v1/automation/crm/send_digest/runs` answered `405`, `Allow:
GET, HEAD`, with an `error.details` envelope, for a signed-in and an
anonymous caller alike. The bare `DELETE
/api/v1/automation/send_digest/runs` answered the domain's `405 Allow:
GET` (signed in) and `401` (anonymous). The domain itself was never at
fault: dispatched directly, the addressed shapes already answer its
`405` (`automation-addressed-route.test.ts`). The gap was only the
transport declaration. No edit to `runtime/src/domains/automation.ts`.

## Tests

`automation-every-verb.hono.integration.test.ts` (both prefixes):
- Added rows: DELETE / POST / PUT on `/automation/crm/send_digest/runs`,
GET on `/automation/crm/send_digest/trigger` and GET on
`/automation/trigger/crm/send_digest`. Each row has an anonymous `401`
case and a signed-in domain `405` case.
- Added controls: a served POST on both addressed triggers runs the
flow; GET and DELETE on `/automation/no_such_ns/send_digest/runs` answer
the dispatcher's `404 ROUTE_NOT_FOUND`.
- `crm` is installed through an ObjectQL registry double answering the
holder table the address reads.

<details><summary>Ablation, one per declaration
(scripts/ablation-replace.mjs, each restored to the HEAD blob with git
diff HEAD empty)</summary>

- Without `:ns/:name/runs`: `Tests 14 failed | 43 passed (57)`. The
failures are every addressed `/runs` row on both prefixes, plus the
no-namespace DELETE control.
- Without `:ns/:name/trigger`: `Tests 4 failed | 53 passed (57)`. The
failures are the anonymous and signed-in GET on
`/automation/crm/send_digest/trigger`, on both prefixes.
- Without `trigger/:ns/:name`: `Tests 4 failed | 53 passed (57)`. The
failures are the anonymous and signed-in GET on
`/automation/trigger/crm/send_digest`, on both prefixes.

</details>

## Acceptance notes

- Same behaviour on a `createHonoApp` host (catch-all): it already
handed every verb to `dispatch()`. No change there.

## Verification

Readings at `9bdd492b`, the head before the last `origin/main` merge.
That merge brought no change to the three files here.
- `pnpm --filter @objectstack/runtime typecheck`: exit 0.
- `pnpm --filter @objectstack/runtime test`: `Test Files 603 passed
(603) / Tests 10934 passed | 19 skipped`.
- Direct dependents exercising the dispatcher on Hono:
`@objectstack/http-conformance` test, `Test Files 20 passed / Tests 292
passed`. `@objectstack/client` `package-addressing.test.ts`, `83
passed`.
- `automation-every-verb.hono.integration.test.ts`: `57 passed (57)`.
- eslint on both touched `.ts` files: exit 0.
- `dispatch-gates --commands`: 67 run, reconciled with `--ran` (67
derived, 67 run). 65 exit 0. Two NOT MEASURED on prerequisites:
`check:dual-build-cjs-loads` needs a full `pnpm build`;
`check:type-check-debt`'s inner build never got the lock.

Final head `39826829` (merge of `origin/main`, which carries objectstack-ai#33721 and
objectstack-ai#33844 in `packages/runtime`): the scoped re-check (closure build,
runtime typecheck, the every-verb, addressed-route, contract-mounts,
clone-mount and route-ledger suites) is NOT MEASURED. The shared verify
lock was held by another worktree's run for over 27 minutes. CI's Test
Core runs the package on this head.

---

_Generated by [Claude
Code](https://claude.ai/code/session_01QsR2jUZKdq3PK2Sab53cT3)_

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude <noreply@anthropic.com>
scbdzhwl pushed a commit to scbdzhwl/objectstack-analysis that referenced this pull request Nov 16, 2026
…not judged at the automation save doors (objectstack-ai#33970)

<!-- claude-projects-attribution: {"github_login":"zhuangjianguo"} -->
_Requested by **Steedos** · [project
thread](https://claude.ai/code/project/chan_018ETKaNwMZCNRYD7D8Q9Ubb?thread=cmsg_018ETKaNwMZCNRYD7D8Q9UbbCpddLFmKzR39wJWZpkRMCi)_
Fixes objectstack-ai#32733
Clause-②: no
Metadata-protocol: none

## 维护者速读

- 改了什么:自动化保存检查通知渠道时,消息服务返回的渠道列表里只要有一个元素不是 `{ id }`
形状,就整体按「读不到」处理(不判),不再过滤后误拒所有渠道;迁移说明条目补齐两种不判情形和路径写法。
- 为什么改:过滤后的空名单会让所有渠道都被 400 拒绝,属于静默误拒;迁移说明要与已发布的 changelog 一致。
- 风险与回滚:只改判定前的读取,第一方消息服务返回的形状不受影响;回滚即还原单个 commit。
-
先看:`packages/runtime/src/domains/automation.ts`(`refuseUnknownNotifyChannels`
的读取段)、新增 pin、`18.notify-channel-unknown-refused.ts`。
- 两分钟验证:`pnpm --filter @objectstack/runtime exec vitest run
src/domains/automation-authoring-doors-durable.test.ts`,预期全部通过。
- 需要你做的:无,席位落地。

## What changes

- **N1.** If `getKnownChannels()` answers a list with any member that is
not a `{ id: string }`, the registry is now treated as unreadable:
nothing is judged and the save goes on. The declared channel contract,
which the check reads structurally in
`packages/runtime/src/domains/automation.ts`, is `interface
NotifyChannelRegistry { getKnownChannels(): ReadonlyArray<{ id: string;
configured: boolean }> }`. Its docblock says: "Every channel the service
knows: the ones registered directly, and each lazy provider (`email`,
`sms`, `push`) whether or not its transport is installed yet." Its one
producer, `MessagingService.getKnownChannels()` in
`@objectstack/service-messaging`, answers `Array<{ id: string;
configured: boolean }>`. A list off that shape is outside the contract,
so it gives no verdict, the same as a reader that throws or answers no
list. Before, such members were dropped and the shrunken roster refused
every channel the node named. Removing that false refusal is outside any
declared accept set and changes no authorable key: `Clause-②: no`,
`Metadata-protocol: none`.
- **N2.** The semantic entry `notify-channel-unknown-refused`
(`packages/spec`, data text only) now names every not-judged case the
doors have, as the released changelog entry does, and the paths a
refusal names. Review face: `CONTRACT_REVIEW_TIER` (packages/spec data
text).
- **N3.** Declined: the field is `relevantWhen`, read by `os migrate
meta`, but its contract says to omit it unless the surface lives only
under top-level stack keys; a flow saved through the `/automation` doors
is stored runtime metadata, outside the stack, so a `stack-declares`
question cannot prove it absent. Same for the picklist sibling.

## Tests

- New pin in `automation-authoring-doors-durable.test.ts`: a reader
answering bare ids, and a list with one bare id, both save 200 with the
node naming `email`.
- Ablation (filter restored in place of the guard, via
`scripts/ablation-replace.mjs`): `× a list with any member that is not a
{ id: string } is unreadable… AssertionError: reader-bare-ids: expected
400 to be 200`; restored, blob equals HEAD, `git diff HEAD` empty.

## Acceptance notes

- `content/docs/automation/flows.mdx` does not list the two not-judged
cases (before `kernel:ready`, an unreadable reader) nor the list-member
and region-body paths; it is outside this PR's surface.

## Verification

All readings at head `f3979189`, which is `42667cd1` merged with
`origin/main`. That main includes objectstack-ai#33721 (`83198201`), whose
`automation.ts` hunks do not touch the `getKnownChannels()` read. The
merge was clean, and the PR delta is exactly the four files below.
- Under os-verify-lock (VERDICT command-exit 0): runtime `^...` closure
build exit 0; runtime typecheck exit 0; spec typecheck exit 0.
- Spec `src/migrations`: `Test Files 5 passed / Tests 198 passed`.
- The pin file: `19 passed (19)`.
- Ablation at this head: `Tests 1 failed | 18 passed`, `AssertionError:
reader-bare-ids: expected 400 to be 200`. Restored: blob `d39570fc2127`
equals HEAD.
- Full runtime suite: `Test Files 605 passed (605) / Tests 10959 passed
| 19 skipped`.
- eslint `--no-inline-config` on the three touched `.ts` files: exit 0.
- `dispatch-gates --commands`: 94 families, all run, reconciled with
`--ran` (94 derived, 94 run). All exit 0 except
`check:dual-build-cjs-loads`: NOT MEASURED, because it needs a full
`pnpm build`. `check:dts-closure` and `check:lean-entry-closure` first
exited 3 before the closure was built, then 0 when re-run after it.

---

_Generated by [Claude
Code](https://claude.ai/code/session_01QsR2jUZKdq3PK2Sab53cT3)_

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet objectstack-fleet Bot removed the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/l tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants